<?php
class cacheControl extends skymvc{
	
	public function __construct(){
		parent::__construct();
		
	}
	
	public function onDefault(){
		$this->smarty->display("cache.html");		
	}
	
	public function onClear(){
		$type=get('type');
		switch($type){
			case 1://清除模板编译
					delfile(ROOT_PATH."temp/compiled/");
				break;
			case 2://文件缓存
					delfile(ROOT_PATH."temp/caches/");
					delfile(ROOT_PATH."temp/filecache/");
				break;
		}
		$this->goall($this->lang['cache_clear_success']);
	}
}

?>